package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 创建个人印章模板
 * @date 2020-04-17 15:48
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "创建个人印章模板请求类", description = "创建个人印章模板请求类")
public class AddPersonTemplateSealReq extends BaseReqObj {

    private static final long serialVersionUID = 4571023876478788666L;

    @ApiModelProperty(value = "业态公司 id \n（仅综合管理平台使用）", notes = "业态公司 id \n（仅综合管理平台使用）", dataType = "Integer")
    private Integer formatId;

    @ApiModelProperty(value = "待创建印章的账户标识", notes = "待创建印章的账户标识", dataType = "String", required = true)
    @NotBlank(message = "账户标识不能为空")
    private String accountId;

    @ApiModelProperty(value = "印章颜色 \n RED（红色） \n BLACK（黑色） \n BLUE（蓝色）", notes = "生成印章的颜色", dataType = "String",
        required = true)
    @NotBlank(message = "印章颜色不能为空")
    private String color;

    @ApiModelProperty(
        value = "模板类型 \n SQUARE（正方形）\n RECTANGLE（长方形）\n FZKC（艺术字体）\n YYGXSF（艺术字体）"
            + "\n HYLSF（艺术字体）\n BORDERLESS（无框矩形）\n HWLS（华文隶书）\n HWXK（华文行楷） "
            + "\n HWXKBORDER（带框华文行楷）\n YGYJFCS（叶根友疾风草书）\n YGYMBXS（叶根友行书）",
        notes = "模板类型", dataType = "String", required = true)
    @NotBlank(message = "模板类型不能为空")
    private String templateType;

    @ApiModelProperty(value = "该印章关联人身份证号(未对接用户中心信息时填写", notes = "该印章关联人身份证号(未对接用户中心信息时填写)", dataType = "String",
        required = false)
    @Size(min = 0, max = 30, message = "证件号码最长 30 位")
    private String idNo;

}
